package android.medicalcloud.com.yiapp.yilian.configer.enums;

/**
 * Created by yinshilin on 16-12-3.
 */
public enum OrderStatus {
    ALL(0, "全部"),

    TIJIAO(100, "待提交"),
    TUIJIAN(201, "申请中"),
    XUANZE(202, "带选择医生"),
    DQRSQ(203, "待确认申请"),
    FENZHEN(204, "待平台确认"),
    ZHUNBEI(205, "待医院准备"),
    HUIZHEN(206, "待执行会诊"),
    JIEHSHU(207, "待确认会诊结果"),
    FENZHEN1(208, "待会诊评价"),
    WANCHENG(209, "已完成"),
    QUXIAO(300, "已取消"),
;

    /**
     * 100:待提交;201:待推荐;202:待选医生;203:待确认;204:待平台确认;205:待医院准备;206:待会诊;207:待确认会诊结果;208:待会诊评价;209:已完成;300:已取消
     */
    public int status;
    public String text;

    OrderStatus(int status, String text) {
        this.status = status;
        this.text = text;
    }

    public int getStatus() {
        return status;
    }

    public String getText() {
        return text;
    }

    public static String getShowText(int status){
            switch (status){
                case 0:
                    return ALL.getText();

                case 100:
                    return TIJIAO.getText();
                case 201:
                    return TUIJIAN.getText();
                case 202:
                    return XUANZE.getText();
                case 203:
                    return DQRSQ.getText();
                case 204:
                    return FENZHEN.getText();
                case 205:
                    return ZHUNBEI.getText();
                case 206:
                    return HUIZHEN.getText();
                case 207:
                    return JIEHSHU.getText();
                case 208:
                    return FENZHEN1.getText();

                case 209:
                    return WANCHENG.getText();
                case 300:
                    return QUXIAO.getText();
            }

        return "";

    }
}
